package vmcs.utility;

/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:
 * @author
 * @version 1.0
 */

public class MoneyFormatter {

  public MoneyFormatter() {
  }

  public  static String  toMoney(int m){
    int  dolla = 0;

    while(m >= 100){
      dolla = dolla + 1;
      m = m - 100;
    }

   if(dolla != 0){
      if(m >= 10)
        return new String ("$"+dolla+"." + m);
      else
        return new String ("$"+dolla+".0" + m);
   }
   else
      return new String (m+"C");
  }
}